<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>




<html:form action="/admin/login" method="POST">
	<TABLE width="32%" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF" align="center">
	
	
	  
	 <!-- 
	  <TABLE width="95%" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF" align="center" border="1px solid #56626d;">
	  <TR bgcolor="#FFFFFF">
	    <TD colspan="3">xxx: <B><a href="#">http://xxx.net</a>/ </B></TD>
	  </TR>
	  <TR bgcolor="#FFFFFF">
	    <TH width="80%" style="background:#46525d;text-align: center;"><span style="background:#46525d;color:#FFFFFF;text-align: center;">xxx</span></TH>
	    <TH width="10%" style="background:#46525d;text-align: center;"><span style="color:#FFFFFF">xxx</span></TH>
	    <TH width="10%" style="background:#46525d;text-align: center;"><span style="color:#FFFFFF">xxx</span></TH>
	  </TR>
	  -->
	  
	  
	  <tr bgcolor="#EEEEEE" align="center">
		  <td height="35" colspan="2" valign="middle">
		  		<logic:messagesPresent>
			  		<img border="0" src="/back_images/alert.gif" alt="">
					<font color="#FF0000"> <html:errors /> </font>
				</logic:messagesPresent> 
				<logic:messagesPresent message="true">
					<img border="0" src="back_/images/alert.gif" alt="">
					<font color="#FF0000"> <html:messages id="message" message="true">
					<bean:write name="message" />
					</html:messages> </font>
				</logic:messagesPresent>
		   </td>
	  </tr>
	  <TR bgcolor="#EEEEEE">
	    <TD nowrap align="right"><span style="color:#03c;font-weight:bold;">用户:</span></TD>
	    <TD nowrap align="left">
	      <label>
	        <html:text name="OperatorForm" property="loginName" />
	        </label>
	    </TD>
	  </TR>
	  <TR bgcolor="#EEEEEE">
	    <TD nowrap align="right"><span style="color:#03c;font-weight:bold;">密码:</span></TD>
	    <TD nowrap align="left"><html:password name="OperatorForm" property="password"/></TD>
	  </TR>
	  <TR bgcolor="#EEEEEE">
	    <TD nowrap align="right"><span style="color:#03c;font-weight:bold;">验证码:</span></TD>
	    <TD nowrap align="left"><input name="checkCode" maxlength="4"
						type="text" size="10" class="codetext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img
						src="/cRandomImage" border=0 alt="验证码" align="middle" height="20" /></TD>
	  </TR>
	  <TR bgcolor="#DDDDDD">
	    <TD colspan="2" align="center">
		<input name="" type="submit" value="     登陆     ">
	    </TD>
	  </TR>
	  
	</TABLE>
</html:form>

<script LANGUAGE="javascript" type="text/javascript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function check()
{
  if(checkspace(document.backstageLoginForm.name.value)) {
        alert("管理员姓名不能为空！");
	document.backstageLoginForm.name.focus();
	return false;
  }
  if(checkspace(document.backstageLoginForm.password.value)) {
        alert("密码不能为空！");
	document.backstageLoginForm.password.focus();
	return false;
  }
  if(checkspace(document.backstageLoginForm.checkCode.value)) {
        alert("验证码不能为空！");
	document.backstageLoginForm.checkCode.focus();
	return false;
  }
	//document.adminInfoForm.submit();
  }
//-->
</script>
